<?php /* Smarty version 2.6.26, created on 2018-07-20 02:57:18
         compiled from E:%5CWWW%5C40.125.208.171%5Cvweb/admin%5Ctemplates/api/config_wchat.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="nav">
	<a href="?m=api&a=config_wchat"<?php if ($_GET['a'] == 'config_wchat'): ?> class="ch"<?php else: ?><?php endif; ?>>微信设置</a>
	<a href="?m=api&a=notice_tpl&type=wxtpl"<?php if ($_GET['type'] == 'wxtpl'): ?> class="ch"<?php else: ?><?php endif; ?>>微信通知模板</a> 
	<a href="?m=wchat&a=tpl"<?php if ($_GET['a'] == 'tpl'): ?> class="ch"<?php else: ?><?php endif; ?>>通知模板</a>
</div>
<div class="explain">
	<div class="name"><span>操作提示</span></div>
	<div class="con">
		<p>配置地址：http://mp.weixin.qq.com</p>
		<p>URL地址：<?php echo $this->_tpl_vars['UQCMS']['site_url']; ?>
wap.php?m=wxapi</p> 
		<p>Token(令牌)：非必须</p> 
		<p>URLEncodingAESKey：非必须</p> 
	</div>  
</div>
<div class="main">
	<form action="?m=config&a=post" method="post" back="false">
		<table width="100%" class="etable">
			<tr>
				<td width="120">开启微信：</td>
				<td>
					<label><input type="radio" name="wchat_status" value="1" <?php if ($this->_tpl_vars['UQCMS']['wchat_status'] == '1'): ?>checked="checked"<?php endif; ?>/> 开启 </label>
					<label><input type="radio" name="wchat_status" value="0" <?php if ($this->_tpl_vars['UQCMS']['wchat_status'] == '0' || $this->_tpl_vars['UQCMS']['wchat_status'] == ''): ?>checked="checked"<?php endif; ?>/> 关闭 </label>
				</td>
			</tr> 
			<td>AppID(应用ID)：</td>
				<td><input type="text" size="50" name="wchat_appid" value="<?php echo $this->_tpl_vars['UQCMS']['wchat_appid']; ?>
"/></td>
			</tr>
			<tr>
				<td>AppSecret：</td>
				<td><input type="password" size="50" name="wchat_appsecret" value="<?php echo $this->_tpl_vars['UQCMS']['wchat_appsecret']; ?>
"/></td>
			</tr>
			<tr>
				<td>Token(令牌)：</td>
				<td><input type="text" size="50" name="wchat_token" value="<?php echo $this->_tpl_vars['UQCMS']['wchat_token']; ?>
"/></td>
			</tr>  
			<tr>
				<td>加解密密钥：</td>
				<td><input type="text" size="50" name="wchat_encoding" value="<?php echo $this->_tpl_vars['UQCMS']['wchat_encoding']; ?>
"/>
					<p>EncodingAESKey</p>
				</td>
			</tr>  
			<tr>
				<td>消息加解密方式：</td>
				<td>
				<label><input type="radio" name="wchat_safe_type" value="1" <?php if ($this->_tpl_vars['UQCMS']['wchat_safe_type'] == '1' || $this->_tpl_vars['UQCMS']['wchat_safe_type'] == ''): ?>checked="checked"<?php endif; ?>/> 明文模式 </label>
				<label><input type="radio" name="wchat_safe_type" value="2" <?php if ($this->_tpl_vars['UQCMS']['wchat_safe_type'] == '2'): ?>checked="checked"<?php endif; ?>/> 兼容模式 </label>
				<label><input type="radio" name="wchat_safe_type" value="3" <?php if ($this->_tpl_vars['UQCMS']['wchat_safe_type'] == '3'): ?>checked="checked"<?php endif; ?>/> 安全模式（推荐） </label> 
				</td>
			</tr>  
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" id="submit" value="提交"/></td>
			</tr>
		</table> 
	</form> 
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 